package main

import "fmt"

func main() {
	var progress = 2
	var target = 8
	title := fmt.Sprintf("已采集%d个药草，还需要%d个完成任务", progress, target)
	fmt.Printf(title)
	pi := 3.14159
	variant := fmt.Sprintf("%v %v %v", "月球基地", pi, true)
	fmt.Println(variant)
	profile := &struct {
		Name string
		HP   int
	}{
		Name: "rat",
		HP:   150,
	}
	fmt.Printf("使用‘%%+v' %+v\n", profile)
	fmt.Printf("使用'%%#v' %#v\n", profile)
	fmt.Printf("使用'%%T' %T\n", profile)
}
